import com.baomidou.mybatisplus.generator.FastAutoGenerator;
import config.DBConfig;
import config.GlobalConfig;
import config.PackageConfig;
import config.StrategyConfig;

/**
 * @Description PACKAGE_NAME
 * @Author zhengzetao
 * @Date 2022/9/16 10:30
 */
public class Generator {

    //todo 实现交互式生成

    public static void main(String[] args) {
        DBConfig dbConfig = new DBConfig();
        FastAutoGenerator.create(dbConfig.getUrl(), dbConfig.getUsername(), dbConfig.getPassword())
                .globalConfig(GlobalConfig::setting)
                .packageConfig(PackageConfig::setting)
                .strategyConfig(StrategyConfig::setting)
                .execute();
    }

}
